package com.imooc.repository;

import com.imooc.domain.OrderDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * Create By Liuqz
 *
 * @date 2018/6/2 20:26
 */
public interface OrderDetailRepository extends JpaRepository<OrderDetail,String>,JpaSpecificationExecutor<OrderDetail> {

    /** 根据订单Id查询订单详情 */
    List<OrderDetail> findByOrOrderId(String orderId);
}
